﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UploadAnnotationView.ascx.cs" Inherits="Operations_Views_UploadAnnotationView" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxControlToolkit" %>
<%@ Register TagPrefix="spring" Namespace="Spring.Web.UI.Controls" Assembly="Spring.Web" %>
<%@ Register Assembly="Pg.BioMedics.SDR.Web.Controls" Namespace="Pg.BioMedics.SDR.Web.Controls" TagPrefix="controls" %>

<spring:DataBindingPanel ID="bindingPanel" runat="server">
    <table>
        <tr>
            <td class="detailsFormLabel">
                <asp:Label ID="Label1" Text="Annotation file:" runat="server" />
            </td>
            <td>
                <controls:FileUpload ID="fileUpload" CssClass="detailsFormTextBox" runat="server" />
                <asp:TextBox ID="fileUpload_validation" BorderColor="White" BorderStyle="None" ForeColor="White" width="0px" Text="abc" runat="server" />
                <asp:CustomValidator ID="fileUploadCustomFieldValidator" Display="None" ErrorMessage="File to upload is required" 
                                     ControlToValidate="fileUpload_validation" ClientValidationFunction="FileUpload.validate" runat="server" />
                <ajaxControlToolkit:ValidatorCalloutExtender ID="fileUploadCustomValidatorCalloutExtender"
                                                             TargetControlID="fileUploadCustomFieldValidator"   
                                                             runat="server" />  
                <br />
                <br />
            </td>
        </tr>
    </table>
        
    <asp:Panel ID="controlPanel" CssClass="detailsFormCommandPanel" runat="server">            
        <asp:LinkButton ID="registerLinkButton" Text="Register" OnClick="registerLinkButton_Click" runat="server" />         
    </asp:Panel> 
</spring:DataBindingPanel>
